package com.xiangban.yanglaodajie_platform.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangban.yanglaodajie_platform.entity.ShoppingCart;
import com.xiangban.yanglaodajie_platform.entity.dto.OrderNoDto;
import com.xiangban.yanglaodajie_platform.entity.dto.ShoppingCartDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/3/17 16:13
 */
@Repository
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

   List<ShoppingCartDto> getShoppingCartPage(ShoppingCart shoppingCart);
   void saveShoppingCart(ShoppingCart shoppingCart);
   ShoppingCart getShoppingCart(ShoppingCart shoppingCart);
   int updateShoppingCart(ShoppingCart shoppingCart);

   ShoppingCart findShopIdAndClassifyId(ShoppingCart shoppingCart);

   List<ShoppingCartDto> getShopName(ShoppingCart shoppingCart);

   List<ShoppingCartDto> getProductList(ShoppingCart shoppingCart);

      ShoppingCartDto getSettlement(OrderNoDto orderNoDto);

   void delShoppingCart(ShoppingCartDto shoppingCartDto);

   void delShoppingCartByShopId(ShoppingCart shoppingCart);
}

